package cn.edu.scujcc;

import java.util.List;
import java.util.Optional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RankingService {
	@Autowired
	private RankingRepositroy repo;
	

	

	public List<Music> getTopMusic(){
		List<Music>result = null;
		result = repo.findTop5ByOrderByHeatDesc();
		return result;
		}
}



